package com.woniu.client;


import com.woniu.client.dto.StationDto;
import com.woniu.model.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "station-server",path = "/station")//这里填目标服务名
public interface StationClient {

    @GetMapping("/station/byId/{id}")
    @ApiOperation("根据站点id查询站点")
    Result<StationDto> findByStationId(@PathVariable("id") Integer id);


}
